import prototype.PrototypeBean;

public class Main {
    public static void main(String[] args) {
        PrototypeBean config = getConfig();
        Program program = new Program(config);
        PrototypeBean b1 = program.getPrototypeBean();
        PrototypeBean b2 = program.getPrototypeBean();
        System.out.println(b1);
        System.out.println(b1.string());
        System.out.println(b2);
        System.out.println(b2.string());
    }

    public static PrototypeBean getConfig() {
        PrototypeBean config = new PrototypeBean();
        config.set_int(2024);
        config.set_string("2024_5_4");
        config.set_double(20.24);
        return config;
    }
}